//
//  HHSinglePickerView.h
//  Flower
//
//  Created by 花花 on 2016/12/13.
//  Copyright © 2016年 花花. All rights reserved.
//

#import <UIKit/UIKit.h>
@class HHToolBar;

typedef void(^SingleDoneHandler)(NSInteger selectedIndex, NSString *selectedValue);
typedef void(^SingleSelectedHandler)(NSString *selectedValue);
typedef void(^BtnOnClick)();
@interface HHSinglePickerView : UIView
@property(nonatomic, strong,readonly) HHToolBar *toolBar;


-(instancetype)initWithToolBarText:(NSString *)toolBarText withDefaultIndex:(NSInteger)defalutIndex withData:(NSArray<NSString*>*)data withValueDidChangeHandler:(SingleSelectedHandler)valueDidChangeHandler cancelOnClick:(BtnOnClick)cancelOnClick doneOnClick:(SingleDoneHandler)doneOnClick;

@end
